package com.wnn.demo.model.news.service;

import com.github.pagehelper.PageInfo;
import com.wnn.demo.domain.News;
import com.wnn.demo.domain.Newsque;
import com.wnn.demo.domain.Task;

import java.util.Date;
import java.util.List;

public interface NewsService {


	void save(News news);


	Integer submit(String id);

//    List<Task> findList();

	News selectOne(News news);

    Integer deletedOne(String id);

	void update(News news);

	Integer submitId(String id);

	PageInfo<News> findAuditList(String titles, String createBy, String startTime, String endTime, Integer page, Integer limit);

	PageInfo<News> findReleaseNews(String titles, String createBy, String startTime, String endTime,Integer page, Integer limit);

	List<News> selectByTime(News news);

	PageInfo<News> selectNewsAll(String titles, String createBy, String startTime, String endTime,Integer page, Integer limit);

	Integer back(String id);

	PageInfo<News> selectNewByName(Newsque newsque,Integer page, Integer limit);
}
